package com.jinlia.show.modules.base.model.po;

import com.jinlia.show.modules.base.system.entity.SysDictType;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class SysDictTypePO extends SysDictType {
    public static SysDictTypePO fromEntity(SysDictType entity) {
        SysDictTypePO vo = new SysDictTypePO();
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
    public static SysDictType toEntity(SysDictTypePO vo) {
        SysDictType entity = new SysDictType();
        BeanUtils.copyProperties(vo, entity);
        return entity;
    }
}
